package org.umss.fixturebuilder.model.appengine;

import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Index;
import com.googlecode.objectify.annotation.Parent;
import java.io.Serializable;

/**
 *
 * @author Daniela Meneses
 */
@Entity
public class RoundModel implements Serializable {

    @Id
    private Long id;
    @Parent
    private Key<PhaseModel> phase;

    public RoundModel() {
    }

    public RoundModel(Key<PhaseModel> phase) {
        this.phase = phase;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Key<PhaseModel> getPhase() {
        return phase;
    }

    public void setPhase(Key<PhaseModel> phase) {
        this.phase = phase;
    }

    @Override
    public String toString() {
        return "RoundModel{" + "id=" + id + '}';
    }
}
